package design.strategy;

/**
 * 可以随时切换算法，最好是根据变量自动切换算法
 */
public class TestDesign {

    public static void main(String[] args) {
        Context context = new Context();
        context.setStrategyService(new StrategyBServiceImpl());
        context.method();
    }

}
